package com.lvwenguo.model;

import java.io.Serializable;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

//商品录入实体类
public class InputProductPurchase implements Serializable {
    private int id;
    private String bar_code;//商品条形码
    private String product_name;//商品名称
    private double purchase_price;//进货单价
    private Date purchase_date;//进货日期
    private Date pro_date;//生产日期
    private Date exp_date;//保质日期
    private Integer count;//进货数量
    private double sale_price;//销售单价
    private String supplier_name;//供应商名称
    private String category_name;//品类名称
    private Integer stock_count;//库存数量

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBar_code() {
        return bar_code;
    }

    public void setBar_code(String bar_code) {
        this.bar_code = bar_code;
    }

    public String getProduct_name() {
        return product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }

    public double getPurchase_price() {
        return purchase_price;
    }

    public void setPurchase_price(double purchase_price) {
        this.purchase_price = purchase_price;
    }

    public Date getPurchase_date() {
        return purchase_date;
    }

    public void setPurchase_date(Date purchase_date) throws ParseException {
        this.purchase_date = purchase_date;
    }

    public Date getPro_date() {
        return pro_date;
    }

    public void setPro_date(Date pro_date) throws ParseException {
        this.pro_date = pro_date;
    }

    public Date getExp_date() {
        return exp_date;
    }

    public void setExp_date(Date exp_date) throws ParseException {
        this.exp_date =exp_date;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public double getSale_price() {
        return sale_price;
    }

    public void setSale_price(double sale_price) {
        this.sale_price = sale_price;
    }

    public String getSupplier_name() {
        return supplier_name;
    }

    public void setSupplier_name(String supplier_name) {
        this.supplier_name = supplier_name;
    }

    public String getCategory_name() {
        return category_name;
    }

    public void setCategory_name(String category_name) {
        this.category_name = category_name;
    }

    public Integer getStock_count() {
        return stock_count;
    }

    public void setStock_count(Integer stock_count) {
        this.stock_count = stock_count;
    }

    @Override
    public String toString() {
        return "InputProductPurchase{" +
                "id=" + id +
                ", bar_code='" + bar_code + '\'' +
                ", product_name='" + product_name + '\'' +
                ", purchase_price=" + purchase_price +
                ", purchase_date=" + purchase_date +
                ", pro_date=" + pro_date +
                ", exp_date=" + exp_date +
                ", count=" + count +
                ", sale_price=" + sale_price +
                ", supplier_name='" + supplier_name + '\'' +
                ", category_name='" + category_name + '\'' +
                ", stock_count=" + stock_count +
                '}';
    }
}
